home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 June / PersonalComputerWorld-June2009-CoverdiscCD.iso / Software / Shareware / Mockups for Desktop 1.5.27 / MockupsForDesktop.air / MockupsAir.swf / scripts / _VSliderStyle.as < prev    next >
Encoding:
Text File  |  2009-03-03  |  1.8 KB  |  56 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.SliderHighlightSkin;
  5.    import mx.skins.halo.SliderThumbSkin;
  6.    import mx.skins.halo.SliderTrackSkin;
  7.    import mx.styles.CSSStyleDeclaration;
  8.    import mx.styles.StyleManager;
  9.    
  10.    public class _VSliderStyle
  11.    {
  12.       public function _VSliderStyle()
  13.       {
  14.          super();
  15.       }
  16.       
  17.       public static function init(param1:IFlexModuleFactory) : void
  18.       {
  19.          var fbs:IFlexModuleFactory = param1;
  20.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("VSlider");
  21.          if(!style)
  22.          {
  23.             style = new CSSStyleDeclaration();
  24.             StyleManager.setStyleDeclaration("VSlider",style,false);
  25.          }
  26.          if(style.defaultFactory == null)
  27.          {
  28.             style.defaultFactory = function():void
  29.             {
  30.                this.thumbOffset = 0;
  31.                this.borderColor = 9542041;
  32.                this.trackHighlightSkin = SliderHighlightSkin;
  33.                this.tickColor = 7305079;
  34.                this.thumbDownSkin = null;
  35.                this.tickOffset = -6;
  36.                this.labelOffset = -10;
  37.                this.thumbOverSkin = null;
  38.                this.tickLength = 3;
  39.                this.thumbDisabledSkin = null;
  40.                this.trackColors = [15198183,15198183];
  41.                this.thumbUpSkin = null;
  42.                this.dataTipPlacement = "left";
  43.                this.dataTipOffset = 16;
  44.                this.trackSkin = SliderTrackSkin;
  45.                this.tickThickness = 1;
  46.                this.showTrackHighlight = false;
  47.                this.thumbSkin = SliderThumbSkin;
  48.                this.dataTipPrecision = 2;
  49.                this.slideDuration = 300;
  50.             };
  51.          }
  52.       }
  53.    }
  54. }
  55.  
  56.